package com.yic.module.system.api.logger;

import com.yic.module.system.api.logger.dto.ExternalLogCreateReqDTO;
import com.yic.module.system.controller.admin.logger.vo.externallog.ExternalLogCreateReqVO;
import com.yic.module.system.convert.logger.ExternalLogConvert;
import com.yic.module.system.service.logger.ExternalLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: Ljx
 * @createTime: 2023年12月28日 10:41:56
 * @version: v1.0.0
 * @Description: 第三方接口日志实现
 */
@Service
public class ExternalLogApiImpl implements ExternalLogApi{

    @Resource
    private ExternalLogService externalLogService;

    @Override
    public void createOperateLog(ExternalLogCreateReqDTO externalLogCreateReqDTO) {
        ExternalLogCreateReqVO reqVO = ExternalLogConvert.INSTANCE.convert01(externalLogCreateReqDTO);
        externalLogService.createExternalLog(reqVO);
    }
}
